package org.crown.project.api.wechat;

import lombok.extern.slf4j.Slf4j;
import org.crown.common.annotation.NotLogin;
import org.crown.project.api.BaseApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wufengsheng
 */
@Slf4j
@NotLogin
@RestController
@RequestMapping(BaseApi.API_PATH_PREFIX)
public class WeChatTestApi extends BaseApi {

    /**
     * 接口配置信息
     *
     * http://www.wufengsheng.top/api/mini/
     *
     * @param signature
     * @param echostr
     * @return
     */
    @NotLogin
    @GetMapping("")
    public String weixinTest(String signature, String echostr) {
        log.info("signature={},echostr={}", signature, echostr);
        return echostr;
    }

}
